package com.xiaoshuidi.cloud.module.contract.controller.admin.contract.vo;

import com.xiaoshuidi.cloud.framework.common.pojo.PageParam;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

import static com.xiaoshuidi.cloud.module.contract.util.date.DateUtils.FORMAT_DATE;

/**
 * @Description:
 * @author: zhaoyu
 * @date: 2023/7/13
 */
@Data
public class HomeQueryVO extends PageParam {

    /**
     * 查询的开始时间
     */
    @DateTimeFormat(pattern = FORMAT_DATE)
    @NotNull(message = "所选时间不能为空")
    private LocalDate startDate;

    /**
     * 门店ID
     */
    private Long apartmentId;

    /**
     * 合同状态
     */
    private String contractStatus;
}
